function live($rootScope, $scope, $http, $document) {
  'ngInject';
  this.watchTV = (address) => {
    let flashvars;
    let CKobject = window.CKobject || {};
    flashvars={
      f: 'http://pa.zhinengjianshe.com/static/js/ckplayer/m3u8.swf',
      // a: m3u8Url,    /*此处填写购买获取到的m3u8地址*/
      a: address,
      c: 0,
      p: 1,
      s: 4,
      lv: 1
    };
    let params = {bgcolor: '#FFF', allowFullScreen: true, allowScriptAccess: 'always', wmode: 'transparent'};
    CKobject.embedSWF('http://pa.zhinengjianshe.com/static/js/ckplayer/ckplayer.swf', "videoPlay", "video", "100%", "100%", flashvars, params);
  }

  this.watchTV($state.params.address);

}

export default live;